/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package grundlagen;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 *
 * @author Dieter Greipl
 */
public class Permutation {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        int maxCount = 4;                
        ArrayList myList = new ArrayList<Integer>();
        for (int i =0; i< maxCount; i++) myList.add(i);
        Collections.shuffle(myList);
        for (int i =0; i< maxCount; i++) System.out.println( i + " :  " + myList.get(i) );                 

    }
}
